//
//  HeadTailCell.swift
//  whale
//
//  Created by topnet on 2022/7/26.
//

import UIKit

class HeadTailCell: WhaleListCell {

    override var mod: TableCellModelProtocol? {
        didSet{
            guard let _mod = mod as? HeadTailModel else { return }
            v.config(title: _mod.title, content: _mod.content, hasArrow: _mod.hasArrow)
        }
    }
    
    override func _initUI() {
        v.insets = UIEdgeInsets(x: 12.adapter)
        contentView.addSubview(v)
        contentView.backgroundColor = .white
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        v.frame = bounds
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        
    }
    
    lazy var v = HeaderTailRowView()

}
